$(function() {
	$("#login").on("click",function(){
		var url = "api_managelogin";
		$.post( url,{
			login_name:$("#username").val(),
			password:$("#password").val()	
		},function(data){
			if (data.state===200) {
				window.location.href=data.goPage;
			}else{
				alert(data.comment);
			}
		},"json");
	});
});
